<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Sjorder extends Model
{

    protected $guarded = [];
    protected $table = 'sjorders';


    public function bespeak(){
        return $this->belongsTo('App\Models\Bespeak');
    }
    public function oncustomer(){
        return $this->belongsTo('App\Models\Oncustomer');
    }

    public function fixfxs(){
        return $this->belongsTo('App\Models\Fixfxs');
    }
    public function bespeakcate(){
        return $this->belongsTo('App\Models\BespeakCate','bcate_id','id');
    }
    public function store(){
        return $this->belongsTo('App\Models\Store');
    }

    public function sjrecords(){
        return $this->hasMany('App\Models\Sjrecord');
    }

}
